home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 04p1.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-06  |  2.1 KB  |  81 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gCursorReady, gKnobState, gMagCursor, gFNEngStart, gPcVidSprite, gplaybtnsprite, gFNEngBtnSprite
  3.   gCursorReady = 1
  4.   gMagCursor = "magCursor"
  5.   gKnobSprite = 14
  6.   gSendMovie = "04p1"
  7.   gplaybtnsprite = 0
  8.   gFNEngBtnSprite = 24
  9.   gFNEngBtnStart = 0
  10.   gPcVidSprite = 11
  11.   puppetSprite(gFNEngBtnSprite, 1)
  12.   puppetSprite(48, 1)
  13.   setUpKnob()
  14.   set the mouseDownScript to EMPTY
  15.   set the mouseUpScript to EMPTY
  16. end
  17.  
  18. on stopMovie
  19.   global gplaybtnsprite, gFNEngBtnSprite, zeoIdle
  20.   puppetSprite(gFNEngBtnSprite, 0)
  21.   stopmovieqt()
  22.   gplaybtnsprite = 23
  23.   zeoIdle = 0
  24. end
  25.  
  26. on idle
  27.   global gCursorReady
  28.   if gCursorReady = 1 then
  29.     cursor(200)
  30.     checkCursors()
  31.     set the locH of sprite 48 to the mouseH
  32.     set the locV of sprite 48 to the mouseV
  33.     updateStage()
  34.   end if
  35.   qtidle()
  36. end
  37.  
  38. on checkCursors
  39.   global gMagCursor, zeoIdle
  40.   setzeoIdle()
  41.   set the castNum of sprite 48 to the number of member "curs1"
  42.   repeat with i = 15 to 17
  43.     if rollOver(i) then
  44.       set the castNum of sprite 48 to the number of member "hotCursor"
  45.     end if
  46.   end repeat
  47.   if the castNum of sprite 18 and rollOver(18) then
  48.     if zeoIdle then
  49.       set the castNum of sprite 48 to the number of member "nonCursor"
  50.     else
  51.       set the castNum of sprite 48 to the number of member "hotCursor"
  52.     end if
  53.   end if
  54.   if the castNum of sprite 24 and rollOver(24) then
  55.     set the castNum of sprite 48 to the number of member "hotCursor"
  56.   end if
  57.   repeat with i = 30 to 32
  58.     if rollOver(i) then
  59.       set the castNum of sprite 48 to the number of member "hotCursor"
  60.     end if
  61.   end repeat
  62.   repeat with i = 40 to 42
  63.     if rollOver(i) then
  64.       set the castNum of sprite 48 to the number of member "hotCursor"
  65.     end if
  66.   end repeat
  67.   if the castNum of sprite 47 and rollOver(47) then
  68.     set the castNum of sprite 48 to the number of member "hotCursor"
  69.   end if
  70. end
  71.  
  72. on setzeoIdle
  73.   global gPcVidSprite, zeoIdle
  74.   zeoIdle = 0
  75.   if the memberNum of sprite gPcVidSprite > 0 then
  76.     if sprite(gPcVidSprite).movieRate > 0 then
  77.       zeoIdle = 1
  78.     end if
  79.   end if
  80. end
  81.